import { _createApp } from './app';

export default async (ssrContext: any) => {
  const { app, router, store } = _createApp();
  const { url } = ssrContext;
  router.push(url);
  console.log(ssrContext);
  await router.isReady();
  ssrContext.state = store.state;
  return app;
};
